package com.wxxymaker.edu.init;

import com.blade.Blade;
import com.blade.ioc.annotation.Bean;
import com.blade.loader.BladeLoader;
import com.blade.mvc.view.template.JetbrickTemplateEngine;

/**
 * @Author: soft
 * @Date: 2018/7/23 13:30
 * @Desc: 设置模板引擎
 */
@Bean
public class ViewBean implements BladeLoader {

    @Override
    public void load(Blade blade) {
        JetbrickTemplateEngine template = new JetbrickTemplateEngine();
        template.addConfig("jetx.import.classes", "com.wxxymaker.edu.model.entity.*");
        blade.templateEngine(template);
    }
}
